import React, { Component } from 'react'
import { NavLink } from "react-router-dom"

export default class footerBar extends Component {
  render() {
    return (
      <ul>
        {
          this.props.routes.map((item, index) => {
            return (
              <li key={index}>
                <NavLink to={item.path}>
                  <span className={`iconfont ${item.meta.icon}`}></span><br></br>
                  <span>{item.meta.title}</span>
                </NavLink>
              </li>
            )
          })
        }
      </ul>
    )
  }
}
